package com.songlanyun.modules.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.enums.OrderConstant;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.order.entity.Order;
import com.songlanyun.modules.order.model.dto.UpdateOrderGoodsPriceDTO;
import com.songlanyun.modules.order.model.vo.OrderVO;
import com.songlanyun.modules.order.model.vo.SaleStatisticsVo;
import com.songlanyun.modules.order.model.vo.UserOrderSlimStatisticsVo;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * 订单统计
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-16 14:14:42
 */
public interface OrderStatisticsService extends IService<Order> {

    Integer loadOrderNumByTime(Long shopId,Long startTime,Long endTime);
    BigDecimal loadOrderAmountByTime(Long shopId, Long startTime, Long endTime);

    Integer loadWaitOperationNum(Long shopId,OrderConstant.TransactionStatus transactionStatus);
}

